cmake_minimum_required(VERSION 3.10)

project(wudong)

message(STATUS," CMake project files for wudong")


set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


set(CMAKE_CXX_STANDARD_REQUIRED   YES)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)


# 添加警告抑制选项
if(MSVC)
    add_compile_options(/W0)
else()
    add_compile_options(-w)
endif()

add_compile_options(
    "$<$<CONFIG:Debug>:/MTd>"
    "$<$<CONFIG:Release>:/MT>"
)
add_definitions(-DUNICODE -D_UNICODE -DUILIB_STATIC)


set(UILIB_STATIC ON)
add_subdirectory(duilib)

# set(WUKUN_STATIC ON)
add_subdirectory(wudong)

add_subdirectory(wd-app)

add_subdirectory(dt-app)



install(FILES ${PROJECT_SOURCE_DIR}/LICENSE DESTINATION share/${PROJECT_NAME})
